package com.azxc.rapid.plus.system.excel;

import com.azxc.rapid.core.excel.support.ExcelImporter;
import com.azxc.rapid.plus.system.service.IUserRegionService;
import lombok.RequiredArgsConstructor;

import java.util.List;

/**
 * 数据导入类
 */
@RequiredArgsConstructor
public class UserRegionImporter implements ExcelImporter<UserRegionExcel> {

	private final IUserRegionService userRegionService;
	private final Boolean isCovered;

	@Override
	public void save(List<UserRegionExcel> data) {
		userRegionService.importUserRegion(data, isCovered);
	}
}
